Integrand size = 45, antiderivative size = 50 \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=\frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^3}{3 B (b c-a d) g i n} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {2561, 2339, 30} \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=\frac {\left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^3}{3 B g i n (b c-a d)} \]
[In]
[Out]
Rule 30
Rule 2339
Rule 2561
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\left (A+B \log \left (e x^n\right )\right )^2}{x} \, dx,x,\frac {a+b x}{c+d x}\right )}{(b c-a d) g i} \\ & = \frac {\text {Subst}\left (\int x^2 \, dx,x,A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )}{B (b c-a d) g i n} \\ & = \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^3}{3 B (b c-a d) g i n} \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.80 \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=\frac {3 A^2 \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+3 A B \log ^2\left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+B^2 \log ^3\left (e \left (\frac {a+b x}{c+d x}\right )^n\right )}{3 b c g i n-3 a d g i n} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(117\) vs. \(2(48)=96\).
Time = 1.44 (sec) , antiderivative size = 118, normalized size of antiderivative = 2.36
method | result | size |
parallelrisch | \(-\frac {B^{2} a^{2} c^{2} \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )^{3}+3 A B \,a^{2} c^{2} \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )^{2}+3 A^{2} \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right ) a^{2} c^{2}}{3 i g \,c^{2} a^{2} n \left (a d -c b \right )}\) | \(118\) |
default | \(\frac {A^{2} \left (\frac {\ln \left (d x +c \right )}{a d -c b}-\frac {\ln \left (b x +a \right )}{a d -c b}\right )}{g i}-\frac {B^{2} \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )^{3}}{3 g i n \left (a d -c b \right )}-\frac {A B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )^{2}}{g i n \left (a d -c b \right )}\) | \(135\) |
parts | \(\frac {A^{2} \left (\frac {\ln \left (d x +c \right )}{a d -c b}-\frac {\ln \left (b x +a \right )}{a d -c b}\right )}{g i}-\frac {B^{2} \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )^{3}}{3 g i n \left (a d -c b \right )}-\frac {A B \ln \left (e \left (\frac {b x +a}{d x +c}\right )^{n}\right )^{2}}{g i n \left (a d -c b \right )}\) | \(135\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 149 vs. \(2 (48) = 96\).
Time = 0.32 (sec) , antiderivative size = 149, normalized size of antiderivative = 2.98 \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=\frac {B^{2} n^{2} \log \left (\frac {b x + a}{d x + c}\right )^{3} + 3 \, B^{2} \log \left (e\right )^{2} \log \left (\frac {b x + a}{d x + c}\right ) + 3 \, A B n \log \left (\frac {b x + a}{d x + c}\right )^{2} + 3 \, A^{2} \log \left (\frac {b x + a}{d x + c}\right ) + 3 \, {\left (B^{2} n \log \left (\frac {b x + a}{d x + c}\right )^{2} + 2 \, A B \log \left (\frac {b x + a}{d x + c}\right )\right )} \log \left (e\right )}{3 \, {\left (b c - a d\right )} g i} \]
[In]
[Out]
\[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=\frac {\int \frac {A^{2}}{a c + a d x + b c x + b d x^{2}}\, dx + \int \frac {B^{2} \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}^{2}}{a c + a d x + b c x + b d x^{2}}\, dx + \int \frac {2 A B \log {\left (e \left (\frac {a}{c + d x} + \frac {b x}{c + d x}\right )^{n} \right )}}{a c + a d x + b c x + b d x^{2}}\, dx}{g i} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 407 vs. \(2 (48) = 96\).
Time = 0.22 (sec) , antiderivative size = 407, normalized size of antiderivative = 8.14 \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=B^{2} {\left (\frac {\log \left (b x + a\right )}{{\left (b c - a d\right )} g i} - \frac {\log \left (d x + c\right )}{{\left (b c - a d\right )} g i}\right )} \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right )^{2} + 2 \, A B {\left (\frac {\log \left (b x + a\right )}{{\left (b c - a d\right )} g i} - \frac {\log \left (d x + c\right )}{{\left (b c - a d\right )} g i}\right )} \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right ) + \frac {1}{3} \, {\left (\frac {{\left (\log \left (b x + a\right )^{3} - 3 \, \log \left (b x + a\right )^{2} \log \left (d x + c\right ) + 3 \, \log \left (b x + a\right ) \log \left (d x + c\right )^{2} - \log \left (d x + c\right )^{3}\right )} n^{2}}{b c g i - a d g i} - \frac {3 \, {\left (\log \left (b x + a\right )^{2} - 2 \, \log \left (b x + a\right ) \log \left (d x + c\right ) + \log \left (d x + c\right )^{2}\right )} n \log \left (e {\left (\frac {b x}{d x + c} + \frac {a}{d x + c}\right )}^{n}\right )}{b c g i - a d g i}\right )} B^{2} - \frac {{\left (\log \left (b x + a\right )^{2} - 2 \, \log \left (b x + a\right ) \log \left (d x + c\right ) + \log \left (d x + c\right )^{2}\right )} A B n}{b c g i - a d g i} + A^{2} {\left (\frac {\log \left (b x + a\right )}{{\left (b c - a d\right )} g i} - \frac {\log \left (d x + c\right )}{{\left (b c - a d\right )} g i}\right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 167 vs. \(2 (48) = 96\).
Time = 0.55 (sec) , antiderivative size = 167, normalized size of antiderivative = 3.34 \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=\frac {{\left (B^{2} n^{2} \log \left (\frac {b x + a}{d x + c}\right )^{3} + 3 \, B^{2} n \log \left (e\right ) \log \left (\frac {b x + a}{d x + c}\right )^{2} + 3 \, B^{2} \log \left (e\right )^{2} \log \left (\frac {b x + a}{d x + c}\right ) + 3 \, A B n \log \left (\frac {b x + a}{d x + c}\right )^{2} + 6 \, A B \log \left (e\right ) \log \left (\frac {b x + a}{d x + c}\right ) + 3 \, A^{2} \log \left (\frac {b x + a}{d x + c}\right )\right )} {\left (\frac {b c}{{\left (b c - a d\right )}^{2}} - \frac {a d}{{\left (b c - a d\right )}^{2}}\right )}}{3 \, g i} \]
[In]
[Out]
Time = 2.60 (sec) , antiderivative size = 122, normalized size of antiderivative = 2.44 \[ \int \frac {\left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2}{(a g+b g x) (c i+d i x)} \, dx=-\frac {\frac {B^2\,{\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )}^3}{3}+A\,B\,{\ln \left (e\,{\left (\frac {a+b\,x}{c+d\,x}\right )}^n\right )}^2}{g\,i\,n\,\left (a\,d-b\,c\right )}+\frac {A^2\,\mathrm {atan}\left (\frac {a\,d\,1{}\mathrm {i}+b\,c\,1{}\mathrm {i}+b\,d\,x\,2{}\mathrm {i}}{a\,d-b\,c}\right )\,2{}\mathrm {i}}{g\,i\,\left (a\,d-b\,c\right )} \]
[In]
[Out]